#include <GL/gl.h>
#include <GL/glu.h>
#include "AppTestGreenView.h"

AppTestGreenView::AppTestGreenView(){
}

void AppTestGreenView::displayFront(){
  glBegin(GL_QUADS);
  glColor3ub(0, 255, 0);
  glVertex3d(-1, 0, 0);
  glVertex3d(-1, 2, 0);
  glVertex3d(1, 2, 0);
  glVertex3d(1, 0, 0);
  glEnd();
}

void AppTestGreenView::displayBack(){
  this->displayFront();
}

void AppTestGreenView::transitive(float percent){
  this->displayFront();
}

AppTestGreenView::~AppTestGreenView(){

}


extern "C" AppTestGreenView* create_view() {
    return new AppTestGreenView;
}

extern "C" void destroy_view(AppTestGreenView* p) {
    delete p;
}

